package com.ruoyi.dm.component;

import com.ruoyi.dm.domain.po.SpaceTrackCollectRecordPO;
import com.ruoyi.dm.service.ICollectTleRecordService;
import com.ruoyi.dm.service.ITrackConditionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 空间目标数据 tle态势信息
 */
@Component
@Slf4j
public class TleCondDataStrategy implements DataStrategy<SpaceTrackCollectRecordPO> {

    @Autowired
    private ITrackConditionService conditionService;

    @Override
    public SpaceTrackCollectRecordPO makeupPo(SpaceTrackCollectRecordPO po) {

        return po;
    }

    @Override
    public String pythonCmd(String satellite, String dataType, String filePath, String method, Integer year) {
        //态势不调用算法
        return "";
    }


    @Override
    public void save(String satellite, String outFile) throws Exception {
        conditionService.saveFile(outFile);
    }
}
